
package com.j2eefast.flowable.bpm.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.j2eefast.common.core.utils.ResponseData;
import com.j2eefast.flowable.bpm.entity.ProjectArchivesEntity;
import com.j2eefast.flowable.bpm.entity.ProjectSanLianEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * <p></p>
 *
 * @author: zhangyuan
 * @date: 2021-04-05 21:47
 * @web: http://www.letukeji.cn
 * @version: 1.0.1
 */

public interface ArchivesMapper extends BaseMapper<ProjectArchivesEntity> {

	Page<ProjectArchivesEntity> archivesList(IPage<?> params,
                                           @Param("userId") Long userId,
											 @Param("contractNo") String remittanceUnit,
											 @Param("fileNumber") String endTime,
											 @Param("projectName") String beginTime,
                                           @Param("sql_filter") String sql_filter);

	public  List<ProjectArchivesEntity> findList(IPage<?> params,
											 @Param("userId") Long userId,
											 @Param("contractNo") String remittanceUnit,
											 @Param("fileNumber") String endTime,
											 @Param("projectName") String beginTime,
											 @Param("sql_filter") String sql_filter);


	public ProjectArchivesEntity getArchivesById( @Param("archiveId")Long archiveId);

	//保存档案信息
	boolean save(ProjectArchivesEntity projectArchivesEntity);

	//获取档案最大编号
	public ProjectArchivesEntity getArchivesId();

	//根据id获取三联信息
	public ProjectArchivesEntity getArchives( @Param("archiveId")Long archiveId);

	public boolean updateByIds(ProjectArchivesEntity projectArchivesEntity);

	//删除三联信息
	public boolean deleteArchive(@Param("ids")Long[] ids);
}

